{% extends "base.html" %}
{% block title %}
我的收藏
{% endblock %}

{% block collect %}
active
{% endblock %}

{% block body %}
    <form action="{% url "collect" %}" method="post">
    {% csrf_token %}
        <table>
&emsp;<input type="text" placeholder="输入要搜索的名字" name="name"><input type="submit">

            <tr>
                <td >姓名</td>
                <td>性别</td>
                <td>年龄</td>
                <td>图片</td>
                <td>年收入</td>
                <td>婚姻状况</td>
                <td>子女</td>
                <td>房产</td>
{#                <td>进行操作</td>#}
            </tr>
            {% for u in user %}
            <tr>
                <td>{{ u.this_c.name }}</td>
                <td>{{ u.this_c.sex }}</td>
                <td>{{ u.this_c.age }}</td>
                <td><a href="http://127.0.0.1:8000/media/{{ u.this_c.photo }}">点此查看</a></td>
                <td>{{ u.this_c.money }}</td>
                <td>{{ u.this_c.married }}</td>
                <td>{{ u.this_c.children }}</td>
                <td>{{ u.this_c.house }}</td>
{#                <td><a href="{% url "collect_delete" cid=u.this_c.id%}">删除</a></td>#}
            </tr>
            {% endfor %}
            <tr>
                <td><a href="{% url "load" %}">将收藏的信息下载</a></td>
            </tr>
        </table>
    </form>
{% endblock %}

{% block head %}
    <style>
        td{
            width: 128px;
            height: 30px;
            text-align: center
        }
    </style>
{% endblock %}